﻿using MapleLeaf.DataBase.Entity;
using SqlSugar;

namespace MapleLeaf.Model.CookBook.Organization.Entity {
    /// <summary>
    /// 部门信息
    /// </summary>
    [SugarTable("sys_dept", "部门信息")]
    public class DepartmentEntity : DataEntityBase {
        /// <summary>
        /// 部门名称
        /// </summary>
        [SugarColumn(ColumnDescription = "名称")]
        public string Name { get; set; }
        /// <summary>
        /// 代号
        /// </summary>
        [SugarColumn(ColumnDescription = "代号")]
        public string Code { get; set; }
        /// <summary>
        /// 上级部门
        /// </summary>
        [SugarColumn(ColumnName = "parent_id", ColumnDescription = "上级部门")]
        public long? ParentId { get; set; } = 0;
        /// <summary>
        /// 部门主管
        /// </summary>
        [SugarColumn(ColumnDescription = "部门主管")]
        public long? Manager { get; set; } = 0;

        /// <summary>
        /// 排序
        /// </summary>
        [SugarColumn(ColumnDescription = "排序")]
        public int? Sort { get; set; } = 0;
    }
}